import {createAPI, createFormAPI} from '@/utils/request'

export const getList = data => createAPI('/api/car', 'get', data)
export const getDetails = id => createAPI(`/api/car/${id}`, 'get')
export const updateData = data => createAPI(`/api/car/${data.id}`, 'put', data)
export const addData = data => createAPI(`/api/car`, 'post', data)
export const delData = id => createAPI(`/api/car/${id}`, 'delete')
